package com.ithuameng.admin.app.system.model.admin.vo;

import com.ithuameng.admin.enums.YesNo;
import com.ithuameng.admin.validation.Phone;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * UserEditVo
 *
 * @author ithuameng
 */
@Data
public class UserEditVo {

    /**
     * 编号
     */
    @NotNull(message = "编号为空")
    private Long id;

    /**
     * 昵称
     */
    @NotBlank(message = "用户姓名为空")
    @Size(max = 30, message = "用户姓名不能超过30个字符")
    private String nickname;

    /**
     * 手机号码
     */
    @Phone
    private String mobile;

    /**
     * 描述
     */
    private String remark;

    /**
     * 状态
     */
    private YesNo status;

    private List<Long> roleIds;
}
